home *** CD-ROM | disk | FTP | other *** search
- Launch a Java development environment from your desktop
- or select it from the task bar if it is already running.
- Then follow the instructions below.
-
- Step 1: Write an application that initializes two
- integers to A=-12 and B=2. Have the method compute each
- of the following: A & B, A | B, A << B, A >> B, and A
- >>> B. Each value should also be printed to the standard
- output.
-
- Step 2: Add a method to your application that generates
- two random doubles between 0.0 and 90.0 that represent
- degrees of angles. Next, find the larger of the two
- degree measures, compute the ceiling of the larger one,
- then compute the tangent of the result after converting
- the degree measure to radians. Each intermediate result
- should be printed to the standard output.
-
- Step 3: Compile and run your application.